Skip to content

Adapt to IPL strict typing in forms and i18n helpers#617

Merged
lippserd merged 2 commits into
mainfrom
ipl-compat
Mar 28, 2026
Merged

Adapt to IPL strict typing in forms and i18n helpers#617
lippserd merged 2 commits into
mainfrom
ipl-compat

Conversation

@lippserd
Copy link
Copy Markdown
Member

@lippserd lippserd commented Mar 28, 2026

Use ipl\Stdlib\Events in form subclasses to satisfy IPL’s strict typing,
which is not met by using EventEmitterTrait directly.

Replace gipfl\Translation\TranslationHelper with ipl\I18n\Translation for
i18n support in UI classes. The module already uses IPL broadly for other
concerns, so this removes a redundant dependency and aligns with IPL’s
strict‑typing requirements.

fixes #616

Recent versions of Icinga PHP Library introduce strict typing that is not
satisfied by using `EventEmitterTrait` directly.
@lippserd lippserd added this to the v1.9.0 milestone Mar 28, 2026
@cla-bot cla-bot Bot added the cla/signed label Mar 28, 2026
The module previously depended on `gipfl\Translation\TranslationHelper`
for i18n support in UI classes. `ipl\I18n\Translation` is the equivalent
trait from the IPL library, which the module already uses broadly for
other concerns, making the gipfl dependency redundant.
@lippserd lippserd merged commit 13e4dcb into main Mar 28, 2026
5 checks passed
lippserd added a commit that referenced this pull request Mar 28, 2026
Use `ipl\Stdlib\Events` in form subclasses to satisfy IPL’s strict typing,
which is not met by using `EventEmitterTrait` directly.

Replace `gipfl\Translation\TranslationHelper` with `ipl\I18n\Translation` for
i18n support in UI classes. The module already uses IPL broadly for other
concerns, so this removes a redundant dependency and aligns with IPL’s
strict‑typing requirements.

(cherry picked from commit 13e4dcb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vsperedb Fatal error after icinga update

1 participant